import { addColumnEllipsis } from 'utils/common';

let columns = [
  {
    dataIndex: 'comment',
    title: '评论内容'
  },
  {
    dataIndex: 'id',
    title: '评论ID',
    width: 100,
    align: 'center'
  },
  {
    dataIndex: 'username',
    title: '评论人昵称',
    width: 160,
    align: 'center'
  },
  {
    dataIndex: 'articleId',
    title: '帖子ID',
    width: 100,
    align: 'center'
  },
  {
    dataIndex: 'parentId',
    title: '评论父ID',
    width: 100,
    align: 'center'
  },
  {
    dataIndex: 'createTime',
    title: '创建时间',
    width: 160,
    align: 'center'
  },
  {
    dataIndex: 'operation',
    title: '操作',
    scopedSlots: {customRender: 'operation'},
    align: 'center',
    width: 80
  }
];

columns = addColumnEllipsis(columns);
export default columns;
